Share glyph and icon caches
authorMatthias Clasen <mclasen@redhat.com>
Tue, 4 Jun 2019 21:27:09 +0000 (21:27 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 4 Jun 2019 23:00:02 +0000 (23:00 +0000)
commit259bbdcb099fd1fd73c0e9839efd5e66e3ebe31d
tree2d9b6f5b0f34dec626b119c45caa35450e0e2e83
parent1f70bc4bf38a396a7d7c0ee54a4ea6813498ec0f
Share glyph and icon caches

Use the same texture atlases to back both
the glyph and icon caches, and unify their
sizes and management. Store big glyphs
in separate textures, so all atlases have
the same size. Tweak some of the eviction
parameters.

We share the caches across all GL contexts
on a display, unless the GSK_NO_SHARED_CACHES
env var is set.
gsk/gl/gskglglyphcache.c
gsk/gl/gskglglyphcacheprivate.h
gsk/gl/gskgliconcache.c
gsk/gl/gskgliconcacheprivate.h
gsk/gl/gskglrenderer.c
gsk/gl/gskgltextureatlas.c
gsk/gl/gskgltextureatlasprivate.h